// 组件引入
import TodoList from '../components/TodoList'
import ShopCar from '../components/ShopCar'
// import ComponentSentProps from '../components/ComponentSentProps'
import TodoListCLassTest from '../components/TodoListCLassTest'
import Systemyimiao from '../components/System-yimiao'
import AddUser from '../components/System-yimiao/AddUser'
import Inject from '../components/System-yimiao/Inject'
import AntdTest from '../components/AntdTest'

// 图标引入
import {
  MenuUnfoldOutlined,
  MenuFoldOutlined,
  UserOutlined,
  VideoCameraOutlined,
  WindowsOutlined,
  AppleOutlined,
  UploadOutlined,
} from '@ant-design/icons'
import React from 'react'

// 列表配置
export default [
  {
    name: 'componentSentProps',
    icon: <MenuFoldOutlined />,
    path: '/home/componentSentProps',
    // 懒加载
    component: React.lazy(() => import("../components/ComponentSentProps")),
  },
  {
    name: 'shopCar',
    icon: <UserOutlined />,
    path: '/home/shopCar',
    component: ShopCar,
  },
  {
    name: 'todoList',
    icon: <AppleOutlined />,
    path: '/home/todoList',
    component: TodoList,
  },
  {
    name: 'todoListCLassTest',
    icon: <VideoCameraOutlined />,
    path: '/home/todoListCLassTest',
    component: TodoListCLassTest,
  },
  {
    name: 'AntdTest',
    icon: <VideoCameraOutlined />,
    path: '/home/antdTest',
    component: AntdTest,
  },
  {
    name: '疫苗系统',
    icon: <WindowsOutlined />,
    path: '/home/systemyimiao',
    children: [
      {
        name: '疫苗系统列表',
        icon: <UploadOutlined />,
        path: '/home/listYimiao',
        component: Systemyimiao,
      },
      {
        name: '疫苗系统新增',
        icon: <UploadOutlined />,
        path: '/home/addYimiao',
        component: AddUser,
      },
      {
        name: '疫苗接种',
        icon: <UploadOutlined />,
        path: '/home/inject',
        component: Inject,
      },
    ],
  },
]
